import request from '@/utils/request'

// 查询采收管理列表
export function listCaishou(query) {
  return request({
    url: '/seedlingSys/caishou/list',
    method: 'get',
    params: query
  })
}

// 查询采收管理详细
export function getCaishou(caiShouID) {
  return request({
    url: '/seedlingSys/caishou/' + caiShouID,
    method: 'get'
  })
}

// 新增采收管理
export function addCaishou(data) {
  return request({
    url: '/seedlingSys/caishou',
    method: 'post',
    data: data
  })
}

// 修改采收管理
export function updateCaishou(data) {
  return request({
    url: '/seedlingSys/caishou',
    method: 'put',
    data: data
  })
}

// 删除采收管理
export function delCaishou(caiShouID) {
  return request({
    url: '/seedlingSys/caishou/' + caiShouID,
    method: 'delete'
  })
}
